package com.cqq.print.business.dao;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cqq.print.business.dao.domain.POrder;
import com.cqq.print.business.dao.query.POrderQuery;


/**
 * @author generated
 * @date 2015-07-01
 */
public interface POrderDao {


    int deleteByPrimaryKey(Integer id);

    int insertSelective(POrder record);

    POrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(POrder record);

    List<POrder> queryOrders(Map<String,Object> map);
    
    int queryOrdersCount(Map<String,Object> map);
    
    POrder queryOrderById(@Param("id")int id);
    
    POrder queryOrderByorderNum(@Param("orderNum")String orderNum);

    Map<String,Object> getMaxOrderNumToDay(@Param("currDate")String currDate);
    
    List<POrder> queryOrdersForDispatch(POrderQuery query);
    
    int queryOrdersCountForDispatch(POrderQuery query);

}